﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace MultiWallpaperManager
{
	public partial class AboutForm : Form
	{
		private const int MajorVersion = 0;
		private const int MinorVersion = 2;

		public AboutForm()
		{
			InitializeComponent();
		}

		private void okButton_Click(object sender, EventArgs e)
		{
			this.Close();
		}

		private void AboutForm_Load(object sender, EventArgs e)
		{
			string aboutString = string.Format(Resource.ProgramName + " {0}.{1}\n\n" + 
												Resource.Credits + "\n\n" + 
												Resource.ProgramInfo,
												MajorVersion, MinorVersion);

			richTextBox.Text = aboutString;
		}
	}
}